-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Redux and Component tests, coverage. Normalize redux actions. #420
Conversation
TristanWright
commented
Jun 2, 2016
•
edited
Loading
edited
- redux tests
- for: Clusters, Projects & Simulations, and Taskflows:
- simple actions
- simple reducers
- component tests?
f34a55b
to
e6b95c6
Compare
Cannot figure out why these two tests are failing: |
Because of the odd async behavior, I'm thinking of just testing simple actions (actions which return |
Since you are using expect - it contains spy functions. Here is an example:
|
@dmitry-zaets THANKS! Hadn't thought of that and I don't have to intercept xhr requests anymore. So happy with this setup now. |
c27946b
to
1fe0047
Compare
✓ simple actions ✓ async actions
Cool we have codecov : https://codecov.io/gh/Kitware/HPCCloud/branch/tests-1 |
Awesome! Well done. |
@TristanWright Let rename the PR to something a little more descriptive :-) The changes to the redux code, are these the results of problems uncovered by the testing? Its not clear exactly what they fix, so makes it a little hard to review. |
Renamed PR, |
Thanks for the explanation, I will try to test this out today. |
When running the test ( which seem to pass ) I am seeing the following:
Is this expected? |
|
||
return action; | ||
return action; | ||
}; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I assume these are just formatting fixes? In future it might be go to do the formatting changes in a separate commit, to make it easier to see the logic changes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The block is wrapped in a (dispatch) => {}
now. I'll be sure to keep formatting separate.
I've tried to track it down several times, by looking through the stack trace there and commenting in and out test blocks to see if it's coming from one specifically. I think it's related to some combination of how we're polyfilling Promises in PhantonJS. If we run the tests in Chrome we don't get any of the same errors. There's a headless chromium in development, when it's ready we'll switch to it. issue 546953 |
I am trying to create a trad cluster and it never seems to move into the running state. I just see the following in the console:
This could be something up with environment, can you confirm you are able to create a cluster? |
When I re-up my vm I usually I need to restart girder. I appended some cluster preference changes last night too if you haven't pulled. |
This was indeed a local configuration issue. |
There are going to be some conflicts with pull #409, this should go first though. |
@TristanWright Your last commit does fix the new cluster creation issue. However, I still see an issue with the state transition from "created" to "running" a refresh is required. |
This confusion came from about how the cluster store items Added redux store documentation to issue #406 (Documentation). |
I am also seeing that in the "Simulation" view a newly create EC2 cluster doesn't appear without a page refresh, not sure if this is new behavior. |
Simulation start or run? I can run and the log and jobs appear On Wed, Jun 22, 2016 at 3:03 PM, Chris Harris notifications@github.com
R&D Engineer |
This is when starting a simulation ( creating a new ec2 cluster ) |
I'm not sure I'm seeing it. I do recall some issue like this, for now I On Wed, Jun 22, 2016 at 3:15 PM, Chris Harris notifications@github.com
R&D Engineer |
I tested against master, it not new. LGTM |
excellent! |