Code Monkey home page Code Monkey logo

Comments (8)

arun-sahadevan avatar arun-sahadevan commented on July 17, 2024

@johncblandii @mikewesner-wf @davetucker-wf @codebuilders-wf @matthewbalvanz-wf . Can anyone please help ?

from over_react.

matthewbalvanz-wf avatar matthewbalvanz-wf commented on July 17, 2024

FYI: @greglittlefield-wf @aaronlademann-wf

I'm not sure the group originally mentioned has a lot of experience with this project. Would you guys be able to take a look at this issue?

from over_react.

johncblandii avatar johncblandii commented on July 17, 2024

@arun-sahadevan it looks like you're running a VM test: https://github.com/leerob/dart-react-todo/blob/master/test/unit/todo_dart_react/stores/todo_store_test.dart.

Run the entire suite and see if the same error happens.

from over_react.

arun-sahadevan avatar arun-sahadevan commented on July 17, 2024

Thanks @matthewbalvanz-wf and @johncblandii .

I tried running the entire test suite by command :
pub run test --pub-serve=8081 test/unit/generated_runner_test.dart
Not getting any error , but showing no tests ran .

capture5

generated_runner_test.dart contains references to all other test files . Even then not able to run any test .
I guess the command i used is correct . Please correct me if am wrong .

from over_react.

johncblandii avatar johncblandii commented on July 17, 2024

Are you starting a pub instance on port 8081?

You should try using dart_dev. It is already included so you can just run pub run dart_dev and not sweat the rest of that line. It will automatically start a pub instance and use it for the tests. You can see ddev will open it content-shell in this case.

~/Work/opensource/dart-react-todo (master): pub run dart_dev test

::: pub serve --port=0 test
    Loading source assets...
    Loading over_react and test/pub_serve transformers...
    Serving todo_dart_react test on http://localhost:65089

::: pub run test --concurrency=4 -p content-shell --reporter=expanded --pub-serve=65089 test/unit/generated_runner_test.dart

I also ran all over_react tests with no problem and this computer didn't have Dart on it at all prior to 10 minutes ago. It seems your issues are with the commands, set up, or tests and in a separate repo.

Feel free to post your code if you're not using dart-react-todo as your source or open an issue on that repo and tag me. I'll help there as well.

from over_react.

arun-sahadevan avatar arun-sahadevan commented on July 17, 2024

Are you using Mac system . Am running on a windows machine @johncblandii

from over_react.

johncblandii avatar johncblandii commented on July 17, 2024

Yup, I'm on a Mac. It is the only way to roll. ;)

from over_react.

aaronlademann-wf avatar aaronlademann-wf commented on July 17, 2024

@arun-sahadevan you can't run tests in the VM when importing a browser-only library like dart:html.

When running your test(s), you need to use the -p flag to specify something like "chrome".

The other thing is, unless you have a standalone .html file that accompanies the test file you're referencing when you run the test command, you can't test it in a browser.

I'd recommend using the pub run dart_dev test command like @johncblandii suggested like so:

pub run dart_dev test -p chrome

or

pub run dart_dev test -p content-shell

from over_react.

Related Issues (20)

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.