![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
LaVague Test Runner is a tool designed to run tests on real websites and generate comprehensive reports. It can be easily launched using the lavague-test command.
To run the LaVague Test Runner, use the lavague-test command. Below are the available options and their descriptions:
--directory / -d
--site / -s
--display
Each site to be tested must be a folder containing a config.yml
file with the test configuration. Below is an example structure:
lavague-tests/sites/
└── example-site/
└── config.yml
The config.yml file define tasks with the following structure:
type: web
max_steps: 5 # max number of action engine retry
n_attempts: 1 # max number of agent retry
user_data: # optional user data to feed the Agent
key: value
tasks:
- name: Name # Optional display name
max_steps: 5 # to override global value
n_attempts: 1 # to override global value
url: https://example.com # the intial task URL
prompt: Prompt for the agent # the agent prompt
expect: # the list of tests to perform on task completion, see below for details
- <property> <operator> <value>
user_data: # optional task-scoped user data to feed the Agent
key: value
Operator | Python operation |
---|---|
is | operator.eq |
is not | operator.ne |
is lower than | operator.lt |
is greater than | operator.gt |
contains | operator.contains |
does not contain | not operator.contains |
Property | Type |
---|---|
URL | string |
Status | success / failure |
Output | string |
Steps | number |
HTML | string |
Tabs | string |
Example of config.yml
tasks:
- name: HuggingFace navigation
url: https://huggingface.co/docs
prompt: Go on the quicktour of PEFT
expect:
- URL is https://huggingface.co/docs/peft/quicktour
- Status is success
- HTML contains PEFT offers parameter-efficient methods for finetuning large pretrained models
- name: HuggingFace search
url: https://huggingface.co
prompt: Find the-wave-250 dataset
expect:
- URL is https://huggingface.co/datasets/BigAction/the-wave-250
- Status is success
lavague-test
will output a report with successes and failures.
If all tests passed exit code will be 0, and -1 if at least one test failed.
Example:
[o] HuggingFace navigation
URL is https://huggingface.co/docs/peft/quicktour
Status is success
HTML contains PEFT offers parameter-efficient methods for finetuning large pretrained models
[o] HuggingFace search
URL is https://huggingface.co/datasets/BigAction/the-wave-250
Status is success
[x] Go to LaVague.ai from https://google.com
(x) URL is https://lavague.ai - was: https://www.google.com/
(x) Status is success - was: failure
[o] Navigate using link
URL is http://localhost:8000/menu.html
Status is success
HTML contains <h1>Menu</h1>
Result: 80 % (8 / 10)
In config.yml
set type
to static
to serve a static website locally.
The following options are available:
www
;Initialization command for local websites will be available soon.
FAQs
Test runner for Lavague
We found that lavague-tests demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.