Skip to content

Instantly share code, notes, and snippets.

View mattwynne's full-sized avatar

Matt Wynne mattwynne

View GitHub Profile
@mattwynne
mattwynne / matt-wynne-headshot.jpg
Last active August 3, 2022 04:25
A profile for Matt to use for conferences etc.
matt-wynne-headshot.jpg
  • I don't have a specific topic, I would love to get to know "what people are talking about"...
  • Expressing examples in Markdown and How lean/agile teams should prioritise work for maximum impact.
  • Cucumber for mobile app testing
  • Learning: Organising feature files as a living documentation for a whole system in an microservice architecture where feature files ""live"" in the corresponding microservices.
  • The state of Cucumber messaging and reporting as a whole
  • Patterns and anti-patterns in Cucumber.
  • Bdd and Java
  • integration with another report tools
  • Cucumber / Behat
  • ethical software development, narratives,
### Keybase proof
I hereby claim:
* I am mattwynne on github.
* I am mattwynne (https://keybase.io/mattwynne) on keybase.
* I have a public key ASCCJyYpFMQWfVzK1MWiDMnDCjkw2Bvv_jW6H1mpgRXN4Ao
To claim this, I am signing this object:
[INFO] -------------------------------------------------------
[INFO] T E S T S
[INFO] -------------------------------------------------------
[INFO] Running Cukes
[ERROR] Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0.874 s <<< FAILURE! - in Cukes
[ERROR] Eat some cukes Time elapsed: 0.855 s <<< ERROR!
java.lang.IllegalStateException: No valid CDI implementation found
[ERROR] Eat some more cukes Time elapsed: 0.009 s <<< ERROR!
java.lang.IllegalStateException: No valid CDI implementation found
@mattwynne
mattwynne / bull-test.js
Created April 22, 2020 17:26
Puzzled about how whenCurrentJobsFinished is supposed to work
const Queue = require('bull')
const q = new Queue('test')
const main = async () => {
await q.clean(0, 'completed')
q.process(async job => {
console.log('work starting')
await new Promise(resolve => setTimeout(resolve, 3000))
console.log('work done')
})
@mattwynne
mattwynne / index.ts
Created March 25, 2020 09:41
ten second pause at end of typeorm script... why?
import "reflect-metadata";
import {createConnection} from "typeorm";
import {User} from "./entity/User";
process.on('exit', () => {
console.log('exit: ', new Date())
})
createConnection().then(async connection => {
@mattwynne
mattwynne / worksheeet.md
Last active March 13, 2020 12:00
Pi Club HTML Worksheet 1

Welcome back to Pi Club!

Link to your website: http://localhost

Worksheet 2

Adding some style

Open your HTML code in your editor. It's in /var/www/html/index.html

@mattwynne
mattwynne / rescue.bat
Created February 2, 2020 21:20
Rescure core server if it won't boot
# From a Live CD / USB
sudo apt-get update && sudo apt-get install mdadm && sudo mdadm --assemble --scan
mkdir /mnt
sudo mount /dev/md2 /mnt
sudo mount /dev/md0 /mnt/boot
for i in /dev /dev/pts /proc /sys /run; do sudo mount -B $i /mnt$i; done
sudo chroot /mnt
> testng@0.0.0 test-cucumber /Users/matt/projects/cucumber-electron-testbed
> npx cucumber-electron test/features/component-x.feature --require 'test/**/steps.ts' --require-module 'ts-node/register'
.F-.
Failures:
1) Scenario: component X can be instanciated # test/features/component-x.feature:3
✔ Before # test/features/step_definitions/steps.ts:11
Feature: Calculate Variance
Assumptions, to keep things simple:
- Payroll period aligned with calendar month
- Benefit effective date = initiated date
- No loading on payroll cut-off date
- No other changes during the month that affect the result
- Employee gets a cover by default
- Variance calculation uses calendar months strategy