How to test a random generator

You can only test statistical randomness anyway, and that does not prove whether the number sequence is cryptographically strong. Statistically testing a PRNG requires quite a lot (10 or even 100Gbytes) of the generated bits. Dieharder is a very good testing suite. http://www.phy.duke.edu/~rgb/General/dieharder.php And TestU01 is also well-known. http://www.iro.umontreal.ca/~simardr/testu01/tu01.html

Authentication Test Servers

httpbin.org has public endpoints for HTTP Basic and Digest Authentication (in each example, replace :user and :passwd with the test values you’d like to check against – :qop, too, for Digest): /basic-auth/:user/:passwd Challenges HTTPBasic Auth. /hidden-basic-auth/:user/:passwd 404’d BasicAuth. /digest-auth/:qop/:user/:passwd Challenges HTTP Digest Auth. Each endpoint is available in both HTTP and HTTPS.

What is The Turkey Test?

The Turkey problem is related to software internationalization or simply to its misbehavior in various language cultures. In various countries there are different standards, for example for writing dates (14.04.2008 in Turkey and 4/14/2008 in US), numbers (i.e. 123,45 in Poland and 123.45 in USA) and rules about character uppercasing (like in Turkey with letters … Read more

Are user acceptance test (UAT) and end-to-end (E2E) test the same thing?

User Acceptance Test is a phase in a typical software development process. From the other side, End-To-End test is one of the approaches to testing the complex applications which involves all layers of the application to interact with each other during test execution. It means that you can execute End-to-End test in User Acceptance Test … Read more

CMake: setting an environmental variable for ctest (or otherwise getting failed test output from ctest/make test automatically)

The built-in test target cannot be modified, but you can add a custom check target which invokes ctest with the –output-on-failure switch in the following way: if (CMAKE_CONFIGURATION_TYPES) add_custom_target(check COMMAND ${CMAKE_CTEST_COMMAND} –force-new-ctest-process –output-on-failure –build-config “$<CONFIGURATION>”) else() add_custom_target(check COMMAND ${CMAKE_CTEST_COMMAND} –force-new-ctest-process –output-on-failure) endif() The custom target has to be set up differently for single build type … Read more

How can I make Elixir mix test output more verbose?

To print the names of the passing tests, you can pass –trace argument to mix test. For example, here’s the output of mix test –trace on the current master branch of httpoison package: $ mix test –trace HTTPoisonTest Starting HTTParrot on port 8080 Starting HTTParrot on port 8433 (SSL) Starting HTTParrot on unix socket httparrot.sock … Read more

Integration and unit tests no longer work on ASP.NET Core 2.1 failing to find assemblies at runtime

Update: This has been made easier with 2.2 Tooling. Make sure that your dotnet –version SDK version is at least 2.2.100, even when buidling 2.1 applications Just add a versionless package reference to your project while keeping the Microsoft.NET.Sdk: <Project Sdk=”Microsoft.NET.Sdk”> <PropertyGroup> <TargetFramework>netcoreapp2.1</TargetFramework> </PropertyGroup> <ItemGroup> <PackageReference Include=”Microsoft.AspNetCore.Mvc.Testing” Version=”2.1.1″ /> <PackageReference Include=”Microsoft.AspNetCore.App” /> <!– other references … Read more