Skip to content
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

Documentation - add a section about child to Writing your first test #815

Open
jenweber opened this issue Feb 4, 2021 · 2 comments
Open

Comments

@jenweber
Copy link
Collaborator

jenweber commented Feb 4, 2021

When I was trying to write some tests and interactors from scratch, I was a little confused about why and when to use child. I think this should have its own section on this page: https://frontside.com/bigtest/docs/platform/writing-your-first-test I saw that I was not supposed to add steps after assertions, but it did not occur to me to use child.

Here are some reasons why someone someone should use child:

  • Creating sets of steps and assertions
  • Grouping interactions into logical sections that can be rearranged as the user flow changes

Here's why BigTest uses this structure syntax:

  • BigTest uses an arrange/act/assert pattern
  • It's fast to do tests this way
@jenweber
Copy link
Collaborator Author

jenweber commented Feb 4, 2021

@cowboyd do you have anything to add?

@cowboyd
Copy link
Member

cowboyd commented Feb 5, 2021

@cowboyd do you have anything to add?

@jenweber yes, I would unpack the definition of "fast" to say that this allows us to optimize the test run without any extra effort by the user. We already do some first order optimizations, but I foresee us being able to do things like transparently parallelize a test run across multiple browsers with zero changes to your test code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants