How to rollback, reset, or drop Ecto test database?

You can access the test database by using MIX_ENV=test followed by a command such as mix do ecto.drop, mix ecto.reset or mix ecto.rollback. In this particular case, I used: MIX_ENV=test mix ecto.reset If your application has multiple repos (DBs), you’ll want to specify a specific repo to avoid applying the operation to all repos. For … Read more

Cucumber vs Capybara

Capybara is a tool that interacts with a website the way a human would (like visiting a url, clicking a link, typing text into a form and submitting it). It is used to emulate a user’s flow through a website. With Capybara you can write something like this: describe “the signup process”, :type => :feature … Read more

How can I locate resources for testing with Cargo?

The environment variable CARGO_MANIFEST_DIR can give you a stable base point to reference other files. Here, we assume that there’s a resources/test directory at the top level of the crate: use std::path::PathBuf; fn main() { let mut d = PathBuf::from(env!(“CARGO_MANIFEST_DIR”)); d.push(“resources/test”); println!(“{}”, d.display()); } See also: How can a Rust program access metadata from its … Read more

How to analyse JMeter result?

Simply list of related links you can possibly find useful: Native graphs: JMeter Report Dashboard Real-time plotting with 3rd party real-time series database like influxdb Free Open source solutions for automated graphs: JMeter Plugins – look onto custom graphs in this package; some of them provide better results reporting out-of-box than jmeter’s original ones; JMeter … Read more