eddyerburgh / Avoriaz
Licence: mit
🔬 a Vue.js testing utility library
Stars: ✠771
Programming Languages
javascript
184084 projects - #8 most used programming language
Projects that are alternatives of or similar to Avoriaz
PixelTest
Fast, modern, simple iOS snapshot testing written purely in Swift.
Stars: ✠56 (-92.74%)
Mutual labels: tests, testing-tools, test-driven-development
mocha-wrap
Fluent pluggable interface for easily wrapping `describe` and `it` blocks in Mocha tests.
Stars: ✠54 (-93%)
Mutual labels: tests, testing-tools
react-native-unit-tests
Example how to test React Native components
Stars: ✠79 (-89.75%)
Mutual labels: testing-tools, test-driven-development
mockcpp
Two C/C++ testing tools, mockcpp and testngpp.
Stars: ✠40 (-94.81%)
Mutual labels: testing-tools, test-driven-development
eat
Json based scenario testing tool(which can have test for functional and non-functional)
Stars: ✠41 (-94.68%)
Mutual labels: testing-tools, test-driven-development
BadMedicine
Library and CLI for randomly generating medical data like you might get out of an Electronic Health Records (EHR) system
Stars: ✠18 (-97.67%)
Mutual labels: tests, testing-tools
Acutest
Simple header-only C/C++ unit testing facility.
Stars: ✠170 (-77.95%)
Mutual labels: testing-tools, tests
Telegraf-Test
Telegraf Test - Simple Test ToolKit of Telegram Bots
Stars: ✠22 (-97.15%)
Mutual labels: tests, testing-tools
StrangerData
👽 A .NET database populator for testing purposes
Stars: ✠22 (-97.15%)
Mutual labels: testing-tools, test-driven-development
ts-mock-imports
Intuitive mocking library for Typescript class imports
Stars: ✠103 (-86.64%)
Mutual labels: tests, testing-tools
Mockito Scala
Mockito for Scala language
Stars: ✠231 (-70.04%)
Mutual labels: testing-tools, test-driven-development
Junit Dataprovider
A TestNG like dataprovider runner for JUnit with many additional features
Stars: ✠226 (-70.69%)
Mutual labels: testing-tools, test-driven-development
Gotests
Automatically generate Go test boilerplate from your source code.
Stars: ✠3,597 (+366.54%)
Mutual labels: testing-tools, test-driven-development
playwright-test
Run unit tests with several runners or benchmark inside real browsers with playwright.
Stars: ✠81 (-89.49%)
Mutual labels: tests, testing-tools
Beanmother
A library for setting up Java objects as test data.
Stars: ✠102 (-86.77%)
Mutual labels: testing-tools, test-driven-development
Mockito
Most popular Mocking framework for unit tests written in Java
Stars: ✠12,453 (+1515.18%)
Mutual labels: testing-tools, test-driven-development
regression-testing
Regression testing in Elm!
Stars: ✠22 (-97.15%)
Mutual labels: tests, testing-tools
Awesome Unit Testing Swift
A curated collection of awesome blog articles, books, talks, podcasts, tools/frameworks and examples.
Stars: ✠272 (-64.72%)
Mutual labels: testing-tools, test-driven-development
avoriaz
a Vue.js testing utility library
Deprecation
This library will be deprecated once vue-test-utils is released.
Installation
npm install --save-dev avoriaz
Documentation
Examples
- Example using karma and mocha
- Example using karma and jasmine
- Example using Jest
- Example using mocha-webpack
- Example using tape
- Example using ava
Assert wrapper contains a child
import { mount } from 'avoriaz'
import Foo from './Foo.vue'
const wrapper = mount(Foo)
expect(wrapper.contains('.bar')).to.equal(true)
Shallow render components
import { shallow } from 'avoriaz'
import Foo from './Foo.vue'
import Bar from './Bar.vue'
const wrapper = shallow(Foo)
expect(wrapper.contains(Bar)).to.equal(true)
Assert style is rendered
const button = wrapper.find('div > button .button-child')[0]
expect(button.hasStyle('color', 'red')).to.equal(true)
Assert method is called when DOM event is triggered
const clickHandler = sinon.stub()
const wrapper = mount(Foo, {
propsData: { clickHandler }
})
wrapper.find('div .bar')[0].trigger('click')
expect(clickHandler.called).to.equal(true)
Assert wrapper contains text
const title = wrapper.find('h1.title')[0]
expect(title.text()).to.equal('some text')
Inject globals
const $route = { path: 'http://www.example-path.com' }
const wrapper = mount(Foo, {
globals: {
$route
}
})
expect(wrapper.vm.$route.path).to.equal($route.path)
Inject slots
const wrapper = mount(Foo, {
slots: {
default: Foo
}
})
Set data
wrapper.setData({
someData: 'some data'
})
expect(wrapper.vm.someData).to.equal('some data')
Update props
wrapper.setProps({
someProp: 'some prop',
anotherProp: 'another prop'
})
For more examples, see the docs
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].