Comments (8)
@johncblandii @mikewesner-wf @davetucker-wf @codebuilders-wf @matthewbalvanz-wf . Can anyone please help ?
from over_react.
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.
@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.
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 .
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.
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.
Are you using Mac system . Am running on a windows machine @johncblandii
from over_react.
Yup, I'm on a Mac. It is the only way to roll. ;)
from over_react.
@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)
- Analyzer plugin diagnostic that warns when children contains one or more void elements
- Add more analyzer plugin assists mirroring what flutter has for widgets
- Optimize / add caching to `MissingRequiredPropDiagnostic` in analyzer plugin
- Add a "Forward unconsumed props" assist to analyzer plugin
- Warn when forwarding props, but hard-coding the value of props.className
- Add an analyzer plugin assist that converts a class-based component to a function component
- Lint when children are found in first parenthetic closure instead of within the invocation
- Improve the diagnostic(s) for missing parentheses around cascading prop setters
- Add analyzer plugin diagnostic error when an uninvoked builder is a child of a nested list literal
- Add completions for fluent interface to the analyzer plugin
- Add "outline" for similar behavior to closing tags
- Prop ordering in autocomplete menu
- Lint when the name of a factory contains "Component"
- Add an analyzer plugin assist to rename a component factory
- Add an analyzer assist that adds an onChange handler to an input with props.value set to an existing or newly created state.value field
- String interpolation of weak key types within a props.key value produces false positive lint
- CPLAT-11574: Investigate CLI integration
- Async function into useEffect hook analysis option
- how to use antd ui component? HOT 2
- Update app example for test_html_builder v2.2.2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from over_react.