Received: by 10.14.204.3 with SMTP id g3mr41593136eeo.7.1351668867572; Wed, 31 Oct 2012 00:34:27 -0700 (PDT) X-BeenThere: guard-dev@googlegroups.com Received: by 10.14.4.66 with SMTP id 42ls884854eei.4.gmail; Wed, 31 Oct 2012 00:34:27 -0700 (PDT) Received: by 10.14.204.201 with SMTP id h49mr42232800eeo.5.1351668866987; Wed, 31 Oct 2012 00:34:26 -0700 (PDT) Received: by 10.14.204.201 with SMTP id h49mr42232799eeo.5.1351668866974; Wed, 31 Oct 2012 00:34:26 -0700 (PDT) Return-Path: Received: from mail-ee0-f54.google.com (mail-ee0-f54.google.com [74.125.83.54]) by gmr-mx.google.com with ESMTPS id m6si701865eep.1.2012.10.31.00.34.26 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 31 Oct 2012 00:34:26 -0700 (PDT) Received-SPF: neutral (google.com: 74.125.83.54 is neither permitted nor denied by best guess record for domain of thib...@thibaud.me) client-ip=74.125.83.54; Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 74.125.83.54 is neither permitted nor denied by best guess record for domain of thib...@thibaud.me) smtp.mail=thib...@thibaud.me Received: by mail-ee0-f54.google.com with SMTP id c50so887913eek.27 for ; Wed, 31 Oct 2012 00:34:26 -0700 (PDT) d=google.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer :x-gm-message-state; bh=P0bmMIlAFgJ20VZG1G1BC7aIAuI6cJaH+RLtl4f2FNY=; b=J51wM0jm83FRf/PSzSZ3shbzwwsv08PVzsT1o9pcR0ju94GqMk0zM9wBplwSonEt2C Z9U4G0YfkcEizR0c8cd9vaGwmu9K9yAY3um8D6vy/CEPKH1gtlaKnRUXcSQJsI8WJeTC kiu4/xemTLWT/MiElFSoBN3Ig/cqjI7Dv4CAKmQyHOz+uis92ewMV0DRD16L/E6I8ZOy ATa/H5jESY0Qz1Ty4kZtmp8kKLH3qJXw8PQFONMSmdx0PXprjlCP7eEb8+6wzj/2LbEc tXMOsukJznTgHQc1fs/FqRbqD5xWvr/GwND+EUGolGg+Wi0fD7RuMMJ9ZzTgIT8dIIxV cNoA== Received: by 10.14.0.198 with SMTP id 46mr83005749eeb.21.1351668866747; Wed, 31 Oct 2012 00:34:26 -0700 (PDT) Return-Path: Received: from [192.168.12.38] (cust.static.46-14-31-62.swisscomdata.ch. [46.14.31.62]) by mx.google.com with ESMTPS id a44sm6326994eeo.7.2012.10.31.00.34.25 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 31 Oct 2012 00:34:26 -0700 (PDT) Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\)) Subject: Re: run guard cucumber features if (and only if) guard rspec passes From: Thibaud Guillaume-Gentil In-Reply-To: <8E80E189-2C4E-41F7-A785-D3D40F031...@netzpiraten.ch> Date: Wed, 31 Oct 2012 08:34:26 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: <1D477F42-8032-4040-9A1D-B21669490...@thibaud.me> References: <35266a00-6766-4670-978d-ee2ce83aede8@googlegroups.com> <8E80E189-2C4E-41F7-A785-D3D40F031...@netzpiraten.ch> To: guard-dev@googlegroups.com X-Mailer: Apple Mail (2.1499) X-Gm-Message-State: ALoCoQkhmu8AD/2MEZpwDeV7hZHK38Dq7/XLJPn+d5t7H7rwisFwPxoF0B++OKtCifOl903lTwcV Good point @netzpirat, I added an accessor for last_failed & = failed_paths in guard-rspec release 2.1.1. Thanks! Thibaud On Oct 31, 2012, at 07:47 , Michael Kessler = wrote: > Hi >=20 > It's not supported out of the box, but you can achieve it by using = callbacks. >=20 > guard :rspec do > =85 > # Trigger all Cucumber features when all Specs passed > callback(:all_end) do > unless Guard.guards(:rspec).instance_variable_get('@last_failed') > Guard.run_all({ :guard =3D> Guard.guards(:cucumber) }) > end > end > end >=20 > @thibaudgg: Would be nice to have an accessor for `@last_failed` :P >=20 > Michael >=20 > On 31.10.2012, at 02:32, Brandon Faloona wrote: >=20 >> Greetings- >>=20 >> I have rspec and cucumber guards in my Guardfile but I'd like to run = cucumber features if (and only if) my rspec tests ALL pass. Is that = possible? >>=20 >>=20 >=20