-
Notifications
You must be signed in to change notification settings - Fork 2
Added the java-check-tests guide #441
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
base: docs
Are you sure you want to change the base?
Conversation
Deploying docs with
|
| Latest commit: |
4563348
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://95f34fd0.docs-c7r.pages.dev |
| Branch Preview URL: | https://java-reporter-tutorials.docs-c7r.pages.dev |
DavertMik
left a comment
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.
- Remove java-check-tests
- Do not hardcode lib version
- Improve 'reporting' sections to be tutorial focused on real user flows
| **java-check-tests** and run the `sync` command. | ||
| Here is one for UNIX/MAC users: | ||
| ```bash | ||
| export TESTOMATIO_URL=... && \ |
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.
not needed for most setups
| <dependency> | ||
| <groupId>io.testomat</groupId> | ||
| <artifactId>java-reporter-junit</artifactId> | ||
| <version>0.7.4</version> |
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.
is ths only version?
| --- | ||
|
|
||
| ## Other commands | ||
| Since the `testomatio.jar` is already in your project, you can use other commands: |
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.
suggest full command usage:
java -jar ... clean-ids
| `--directory` works for this command. | ||
| If you have already removed the jar from the project, you can run the oneliner you used to sync, | ||
| but change `sync` to `clean-ids`. | ||
| <br/> |
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.
invalid syntax
| <br/> | ||
| <br/> | ||
|
|
||
| As you can see, the Java-Check-Tests usage is pretty straightforward. |
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.
| As you can see, the Java-Check-Tests usage is pretty straightforward. | |
| As you can see, the Java-Check-Tests usage is pretty straightforward. |
Never write like this
This line means nothing
This is not straightforward for some users
| java -jar testomatio.jar sync | ||
| ``` | ||
|
|
||
| The `TESTOMATIO_URL` here is the server URL. In general, this will be `https://app.testomat.io` or `https://beta.testomat.io`. |
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 `TESTOMATIO_URL` here is the server URL. In general, this will be `https://app.testomat.io` or `https://beta.testomat.io`. | |
| The `TESTOMATIO_URL` here is the server URL. In general, this will be `https://app.testomat.io` or `https://beta.testomat.io`. |
Do not expose our beta!
TESTOMATIO_URL is needed only for on premise setups
By default it should be avoided
| ```cmd | ||
| set TESTOMATIO_URL=...&& ^ | ||
| set TESTOMATIO=...&& ^ | ||
| curl -L -O https://github.com/testomatio/java-check-tests/releases/latest/download/testomatio.jar&& ^ |
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.
curl -L -O -z testomatio.jar https://github.com/testomatio/java-check-tests/releases/latest/download/testomatio.jar && \
The -z flag makes curl only download if the remote file is newer than the local file, or if the local file doesn't exist.
|
|
||
| > Names of the properties **remain the same** in both approaches. | ||
|
|
||
| 3. When you have synchronized your code and provided the required properties, that's basically all: run your tests and see |
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.
this is tutorial, not a reference here! Do not focus on all possible options
Focus on usage and workflow
| > Names of the properties **remain the same** in both approaches. | ||
|
|
||
| 2. When you have synchronized your code and provided the required properties, that's basically all: run your tests and see | ||
| the results in the [Testomat.io UI](https://app.testomat.io) |
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.
screenshot needed
|
|
||
| - ***Run customization with additional properties*** | ||
|
|
||
| | Setting | What it does | Default | Example | |
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.
table formatting is broken but just remove this table
| - System environment | ||
| - JVM properties | ||
| - `testomatio.properties` file in the resources folder | ||
| - `testomatio.url=https://beta.testomat.io` – if you run on beta, add this property as the library reports to |
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.
ok, but how to run tests and see results?
Which command?
mvn test ?
|
@DavertMik could you please take a look if we can merge this article? |
No description provided.