GithubHelp home page GithubHelp logo

clickup / honey Goto Github PK

View Code? Open in Web Editor NEW
329.0 13.0 12.0 1.42 MB

Come to the sweet side of testing.

Dart 86.37% ANTLR 2.79% Shell 0.10% TypeScript 10.43% JavaScript 0.31%
e2e flutter test-automation testing

honey's People

Contributors

cgutierr-zgz avatar piotrmoskala avatar simc avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

honey's Issues

CI/CD any plans guys on implementing?

Hey,
I would like to ask if you have any ideas on a roadmap for how to implement this in CI/CD and even if you have plans to look it up, or library was just a prototype without future investments and development.
Thanks!

Flutter web support

Are you planning to add Flutter web app support?

Is this project still active? Because since 8 months there has been no new commit.

Can't build for web as HoneyTalkParser has very large integer literals

Thank you for this amazing package!
When trying to build for the web after depending on honey it fails with the following errors:

/opt/hostedtoolcache/flutter/3.3.2-stable/x64/.pub-cache/hosted/pub.dartlang.org/honey-0.2.0/lib/src/compiler/antlr/HoneyTalkParser.dart:289:196:
Error: The integer literal 35607409199153153 can't be represented exactly in JavaScript.
      if (((_la) & ~0x3f) == 0 && ((1 << _la) & -8655355521802[24](https://github.com/doneservices/done-flutter/actions/runs/3531668934/jobs/5925094729#step:7:25)0) != 0 || (((_la - 64)) & ~0x3f) == 0 && ((1 << (_la - 64)) & -17) != 0 || (((_la - 128)) & ~0x3f) == 0 && ((1 << (_la - 128)) & -35607409199153153) != 0 || (((_la - 192)) & ~0x3f) == 0 && ((1 << (_la - 192)) & 28710447624488959) != 0 || (((_la - 265)) & ~0x3f) == 0 && ((1 << (_la - 265)) & 3848282434559) != 0) ***
                                                                                          ^^^^^^^^^^^^^^^^^
/opt/hostedtoolcache/flutter/3.3.2-stable/x64/.pub-cache/hosted/pub.dartlang.org/honey-0.2.0/lib/src/compiler/antlr/HoneyTalkParser.dart:289:277:
Error: The integer literal 28710447624488959 can't be represented exactly in JavaScript.
      if (((_la) & ~0x3f) == 0 && ((1 << _la) & -8655355521802240) != 0 || (((_la - 64)) & ~0x3f) == 0 && ((1 << (_la - 64)) & -17) != 0 || (((_la - 128)) & ~0x3f) == 0 && ((1 << (_la - 128)) & -35607409199153153) != 0 || (((_la - 192)) & ~0x3f) == 0 && ((1 << (_la - 192)) & 28710447624488959) != 0 || (((_la - 265)) & ~0x3f) == 0 && ((1 << (_la - 265)) & 3848282434559) != 0) ***
                                                                                          ^^^^^^^^^^^^^^^^^
/opt/hostedtoolcache/flutter/3.3.2-stable/x64/.pub-cache/hosted/pub.dartlang.org/honey-0.2.0/lib/src/compiler/antlr/HoneyTalkParser.dart:407:199:
Error: The integer literal 35607409199153153 can't be represented exactly in JavaScript.
      while (((_la) & ~0x3f) == 0 && ((1 << _la) & -8655355521802240) != 0 || (((_la - 64)) & ~0x3f) == 0 && ((1 << (_la - 64)) & -17) != 0 || (((_la - 128)) & ~0x3f) == 0 && ((1 << (_la - 128)) & -35607409199153153) != 0 || (((_la - 192)) & ~0x3f) == 0 && ((1 << (_la - 192)) & 28710447624488959) != 0 || (((_la - 265)) & ~0x3f) == 0 && ((1 << (_la - 265)) & 3848282434559) != 0) ***
                                                                                          ^^^^^^^^^^^^^^^^^
/opt/hostedtoolcache/flutter/3.3.2-stable/x64/.pub-cache/hosted/pub.dartlang.org/honey-0.2.0/lib/src/compiler/antlr/HoneyTalkParser.dart:407:280:
Error: The integer literal 28710447624488959 can't be represented exactly in JavaScript.
      while (((_la) & ~0x3f) == 0 && ((1 << _la) & -8655355521802240) != 0 || (((_la - 64)) & ~0x3f) == 0 && ((1 << (_la - 64)) & -17) != 0 || (((_la - 128)) & ~0x3f) == 0 && ((1 << (_la - 128)) & -35607409199153153) != 0 || (((_la - 192)) & ~0x3f) == 0 && ((1 << (_la - 192)) & 28710447624488959) != 0 || (((_la - 265)) & ~0x3f) == 0 && ((1 << (_la - 265)) & 3848282434559) != 0) ***
                                                                                          ^^^^^^^^^^^^^^^^^
/opt/hostedtoolcache/flutter/3.3.2-stable/x64/.pub-cache/hosted/pub.dartlang.org/honey-0.2.0/lib/src/compiler/antlr/HoneyTalkParser.dart:471:199:
Error: The integer literal 35607409199153153 can't be represented exactly in JavaScript.
      while (((_la) & ~0x3f) == 0 && ((1 << _la) & -8655355521802240) != 0 || (((_la - 64)) & ~0x3f) == 0 && ((1 << (_la - 64)) & -17) != 0 || (((_la - 128)) & ~0x3f) == 0 && ((1 << (_la - 128)) & -35607409199153153) != 0 || (((_la - 192)) & ~0x3f) == 0 && ((1 << (_la - 192)) & 28710447624488959) != 0 || (((_la - 265)) & ~0x3f) == 0 && ((1 << (_la - 265)) & 3848282434559) != 0) ***
                                                                                          ^^^^^^^^^^^^^^^^^
/opt/hostedtoolcache/flutter/3.3.2-stable/x64/.pub-cache/hosted/pub.dartlang.org/honey-0.2.0/lib/src/compiler/antlr/HoneyTalkParser.dart:471:280:
Error: The integer literal 28710447624488959 can't be represented exactly in JavaScript.
      while (((_la) & ~0x3f) == 0 && ((1 << _la) & -8655355521802240) != 0 || (((_la - 64)) & ~0x3f) == 0 && ((1 << (_la - 64)) & -17) != 0 || (((_la - 128)) & ~0x3f) == 0 && ((1 << (_la - 128)) & -35607409199153153) != 0 || (((_la - 192)) & ~0x3f) == 0 && ((1 << (_la - 192)) & 28710447624488959) != 0 || (((_la - 265)) & ~0x3f) == 0 && ((1 << (_la - 265)) & 3848282434559) != 0) ***
                                                                                          ^^^^^^^^^^^^^^^^^
/opt/hostedtoolcache/flutter/3.3.2-stable/x64/.pub-cache/hosted/pub.dartlang.org/honey-0.2.0/lib/src/compiler/antlr/HoneyTalkParser.dart:503:199:
Error: The integer literal 35607409199153153 can't be represented exactly in JavaScript.
      while (((_la) & ~0x3f) == 0 && ((1 << _la) & -8655355521802240) != 0 || (((_la - 64)) & ~0x3f) == 0 && ((1 << (_la - 64)) & -17) != 0 || (((_la - 128)) & ~0x3f) == 0 && ((1 << (_la - 128)) & -35607409199153153) != 0 || (((_la - 192)) & ~0x3f) == 0 && ((1 << (_la - 192)) & 28710447624488959) != 0 || (((_la - 265)) & ~0x3f) == 0 && ((1 << (_la - 265)) & 3848282434559) != 0) ***
                                                                                          ^^^^^^^^^^^^^^^^^
/opt/hostedtoolcache/flutter/3.3.2-stable/x64/.pub-cache/hosted/pub.dartlang.org/honey-0.2.0/lib/src/compiler/antlr/HoneyTalkParser.dart:503:280:
Error: The integer literal 28710447624488959 can't be represented exactly in JavaScript.
      while (((_la) & ~0x3f) == 0 && ((1 << _la) & -8655355521802240) != 0 || (((_la - 64)) & ~0x3f) == 0 && ((1 << (_la - 64)) & -17) != 0 || (((_la - 128)) & ~0x3f) == 0 && ((1 << (_la - 128)) & -35607409199153153) != 0 || (((_la - 192)) & ~0x3f) == 0 && ((1 << (_la - 192)) & 28710447624488959) != 0 || (((_la - 265)) & ~0x3f) == 0 && ((1 << (_la - 265)) & 3848282434559) != 0) ***
                                                                                          ^^^^^^^^^^^^^^^^^
/opt/hostedtoolcache/flutter/3.3.2-stable/x64/.pub-cache/hosted/pub.dartlang.org/honey-0.2.0/lib/src/compiler/antlr/HoneyTalkParser.dart:588:51:
Error: The integer literal 57681[25](https://github.com/doneservices/done-flutter/actions/runs/3531668934/jobs/5925094729#step:7:26)96036108296 can't be represented exactly in JavaScript.
        if (((_la) & ~0x3f) == 0 && ((1 << _la) & 576812596036108296) != 0 || (((_la - 120)) & ~0x3f) == 0 && ((1 << (_la - 120)) & -9133511153492819967) != 0 || (((_la - 184)) & ~0x3f) == 0 && ((1 << (_la - 184)) & 7349874591869173759) != 0 || (((_la - [26](https://github.com/doneservices/done-flutter/actions/runs/3531668934/jobs/5925094729#step:7:27)5)) & ~0x3f) == 0 && ((1 << (_la - 265)) & 3848282434559) != 0) ***
                                                  ^^^^^^^^^^^^^^^^^^
/opt/hostedtoolcache/flutter/3.3.2-stable/x64/.pub-cache/hosted/pub.dartlang.org/honey-0.2.0/lib/src/compiler/antlr/HoneyTalkParser.dart:588:134:
Error: The integer literal 9133511153492819967 can't be represented exactly in JavaScript.
        if (((_la) & ~0x3f) == 0 && ((1 << _la) & 576812596036108296) != 0 || (((_la - 120)) & ~0x3f) == 0 && ((1 << (_la - 120)) & -9133511153492819967) != 0 || (((_la - 184)) & ~0x3f) == 0 && ((1 << (_la - 184)) & 7349874591869173759) != 0 || (((_la - 265)) & ~0x3f) == 0 && ((1 << (_la - 265)) & 3848282434559) != 0) ***
                                                                                          ^^^^^^^^^^^^^^^^^^^
/opt/hostedtoolcache/flutter/3.3.2-stable/x64/.pub-cache/hosted/pub.dartlang.org/honey-0.2.0/lib/src/compiler/antlr/HoneyTalkParser.dart:588:217:
Error: The integer literal 7349874591869173759 can't be represented exactly in JavaScript.
        if (((_la) & ~0x3f) == 0 && ((1 << _la) & 576812596036108296) != 0 || (((_la - 120)) & ~0x3f) == 0 && ((1 << (_la - 120)) & -9133511153492819967) != 0 || (((_la - 184)) & ~0x3f) == 0 && ((1 << (_la - 184)) & 7349874591869173759) != 0 || (((_la - 265)) & ~0x3f) == 0 && ((1 << (_la - 265)) & 3848282434559) != 0) ***
                                                                                          ^^^^^^^^^^^^^^^^^^^
/opt/hostedtoolcache/flutter/3.3.2-stable/x64/.pub-cache/hosted/pub.dartlang.org/honey-0.2.0/lib/src/compiler/antlr/HoneyTalkParser.dart:1573:134:
Error: The integer literal 9133511153492819967 can't be represented exactly in JavaScript.
        if (((_la) & ~0x3f) == 0 && ((1 << _la) & 576812596035059712) != 0 || (((_la - 120)) & ~0x3f) == 0 && ((1 << (_la - 120)) & -9133511153492819967) != 0 || (((_la - 184)) & ~0x3f) == 0 && ((1 << (_la - 184)) & 69175290[27](https://github.com/doneservices/done-flutter/actions/runs/3531668934/jobs/5925094729#step:7:28)641606143) != 0 || (((_la - 265)) & ~0x3f) == 0 && ((1 << (_la - 265)) & 3848[28](https://github.com/doneservices/done-flutter/actions/runs/3531668934/jobs/5925094729#step:7:29)2434559) != 0) ***
                                                                                          ^^^^^^^^^^^^^^^^^^^
/opt/hostedtoolcache/flutter/3.3.2-stable/x64/.pub-cache/hosted/pub.dartlang.org/honey-0.2.0/lib/src/compiler/antlr/HoneyTalkParser.dart:1573:217:
Error: The integer literal 69175[29](https://github.com/doneservices/done-flutter/actions/runs/3531668934/jobs/5925094729#step:7:30)027641606143 can't be represented exactly in JavaScript.
        if (((_la) & ~0x3f) == 0 && ((1 << _la) & 576812596035059712) != 0 || (((_la - 120)) & ~0x3f) == 0 && ((1 << (_la - 120)) & -91[33](https://github.com/doneservices/done-flutter/actions/runs/3531668934/jobs/5925094729#step:7:34)51115[34](https://github.com/doneservices/done-flutter/actions/runs/3531668934/jobs/5925094729#step:7:35)92819967) != 0 || (((_la - 184)) & ~0x3f) == 0 && ((1 << (_la - 184)) & 6917529027641606143) != 0 || (((_la - 265)) & ~0x3f) == 0 && ((1 << (_la - 265)) & [38](https://github.com/doneservices/done-flutter/actions/runs/3531668934/jobs/5925094729#step:7:39)48282[43](https://github.com/doneservices/done-flutter/actions/runs/3531668934/jobs/5925094729#step:7:44)[45](https://github.com/doneservices/done-flutter/actions/runs/3531668934/jobs/5925094729#step:7:46)[59](https://github.com/doneservices/done-flutter/actions/runs/3531668934/jobs/5925094729#step:7:60)) != 0) ***
                                                                                          ^^^^^^^^^^^^^^^^^^^
Error: Compilation failed.

Apparently, they consider these values as integer literals and they are too big to be represented in JS, relevant SO post:
https://stackoverflow.com/questions/71526258/why-do-i-get-the-error-integer-literal-is-too-large-to-be-represented-in-any-in

CI compatibility

Hey! Thanks for this package - it seems really cool and I'm trying to evaluate it for an enterprise app that I work on. In order for it to be a viable solution for us, I'll need to be able to run honey tests in CI.

It seems like honey_cli would be a great solution for that, however, I'm wondering if its supported. It appears that it is dependent upon an older version of honey and doesn't have much documentation.

Do you have any updates on honey_cli or suggestions on another way to run honey tests in ci?

Thanks again for your help!

Tried running docs locally from command line. Seems like VuePress version has issues?

I tried using the docs/package.json as downloaded as:

{
    "name": "docs",
    "version": "1.0.0",
    "devDependencies": {
        "@types/node": "^18.11.9",
        "@vuepress/plugin-prismjs": "^2.0.0-beta.53",
        "@vuepress/plugin-shiki": "^2.0.0-beta.52",
        "vuepress": "^2.0.0-beta.53"
    },
    "scripts": {
        "dev": "vuepress dev docs",
        "build": "vuepress build docs"
    }
}

It gave an error about codec problem:

npm WARN deprecated [email protected]: Please use @jridgewell/sourcemap-codec instead
npm ERR! code ETARGET
npm ERR! notarget No matching version found for [email protected].
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.
npm ERR! notarget 
npm ERR! notarget It was specified as a dependency of 'vuepress'
npm ERR! notarget 

Googling this, I upgraded to vuepress, prismjs, and shiki all to 2.0.0-beta.60, but this issue still remains:

npm ERR! notarget No matching version found for [email protected].

Steps to recreate:
cd docs
npm install --cache /tmp/new-cache

Upon more searching this issue is caused by:
vuepress/core#1195

Basically they updated to a newer version of a dependency with a naming that causes the ^ and ~ to fail.

I'd suggest just switching those out to:

{
    "name": "docs",
    "version": "1.0.0",
    "devDependencies": {
        "@types/node": "^18.11.9",
        "@vuepress/plugin-prismjs": "2.0.0-beta.60",
        "@vuepress/plugin-shiki": "2.0.0-beta.60",
        "vuepress": "2.0.0-beta.60"
    },
    "scripts": {
        "dev": "vuepress dev docs",
        "build": "vuepress build docs"
    }
}

Run tests from command line?

Is there there a way to run honey tests through command line? Would be very helpful to add to the CI pipeline.

Honey not working in Flutter 3.16.1

Honey app is not working in Flutter 3.16.1, the app starts but it stays freezed and it is not being able to display anything.
The only log I've got is
"E/chromium(10359): [1130/103911.079895:ERROR:variations_seed_loader.cc(69)] Failed to open file for reading. Errno: 2"

Posting my flutter doctor output:

Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 3.16.1, on Microsoft Windows [Versi¢n 10.0.22621.2715], locale es-ES)
[√] Windows Version (Installed version of Windows is version 10 or higher)
[√] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[√] Chrome - develop for the web
[√] Visual Studio - develop Windows apps (Visual Studio Professional 2019 16.10.1)
[√] Android Studio (version 2022.2)
[√] IntelliJ IDEA Community Edition (version 2023.2)
[√] VS Code (version 1.84.2)
[√] Connected device (4 available)
[√] Network resources

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.